package cn.school.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import cn.school.dao.StudentDao;
import cn.school.entity.Student;
import cn.school.util.MyBatisUtil;

public class Service {
	public List<Student> searchLimitByMohu(int pageno, int pagesize) {
		SqlSession session = MyBatisUtil.getSqlsession();
		try {
			StudentDao studentDao = session.getMapper(StudentDao.class);
			return studentDao.searchLimitByMohu(pageno, pagesize);
		} finally {
			MyBatisUtil.getclose(session);
		}
	}
}
